//
//  HJInformationTabView.h
//  KaiChat
//
//  Created by lx on 2024/3/11.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@class HJInformationTabView, HJNewsTabModel;
@protocol HJInformationTabControlViewDelegate <NSObject>
@optional

- (void)view:(HJInformationTabView *)view didSelectItem:(HJNewsTabModel *)model;

- (void)didClickMore:(HJInformationTabView *)view;

@end


@interface HJInformationTabView : UIView

@property (nonatomic, strong) UICollectionView *collectionView;
@property (nonatomic, strong) UICollectionViewFlowLayout *flowLayout;
@property (nonatomic, strong) NSMutableArray<HJNewsTabModel *> *datas;
@property (nonatomic, weak) id<HJInformationTabControlViewDelegate> delegate;
@property (nonatomic, strong) NSIndexPath *selectIndexPath;
- (void)reloadData;

@end

NS_ASSUME_NONNULL_END
